<?php
/**
* @file ChatRoom.php
* Copyright (c) Friends Group. All rights reserved.
* $Id$
*
*/

require_once(realpath(dirname(__FILE__)) . '/../classes/BaseObject.php');

class ChatRoom extends BaseObject 
{

    /**
     * @AttributeType int
     */
    protected $ID;

    /**
     * @AttributeType String
     * Tên phòng
     */
    protected $roomName;

    /**
     * @AttributeType int
     * Người tạo phòng
     */
    protected $createBy;

    public function __construct($roomName = "", $createBy = null)
    {
        $this -> roomName = $roomName;
        $this -> createBy = $createBy;
    }
    
    /**
     * @ParamType iD int
     */
    public function setID($ID) 
    {
        $this->ID = $ID;
    }

    /**
     * @ReturnType int
     */
    public function getID() 
    {
        return $this->ID;
    }

    /**
     * @ParamType roomName String
     */
    public function setRoomName($roomName) 
    {
        $this->roomName = $roomName;
    }

    /**
     * @ReturnType String
     */
    public function getRoomName() 
    {
        return $this->roomName;
    }

    /**
     * @ParamType createBy int
     */
    public function setCreateBy($createBy) 
    {
        $this->createBy = $createBy;
    }

    /**
     * @ReturnType int
     */
    public function getCreateBy() 
    {
        return $this->createBy;
    }
}
?>